Skip to content

fix(router-timelock): add getters, tests, and doc fixes - #927

Merged
Maki-Zeninn merged 2 commits into
Maki-Zeninn:mainfrom
ochemegina-ai:fix/timelock-getters-tests-docs
Jul 26, 2026
Merged

fix(router-timelock): add getters, tests, and doc fixes#927
Maki-Zeninn merged 2 commits into
Maki-Zeninn:mainfrom
ochemegina-ai:fix/timelock-getters-tests-docs

Conversation

@ochemegina-ai

Copy link
Copy Markdown
Contributor

closes #879
closes #880
closes #881
closes #882

- Add test_get_op_nonexistent_returns_none to verify get_op returns
  None for an unknown op_id, closing the regression gap against
  accidental unwrap() or default-value fallback (closes Maki-Zeninn#879)

- Add get_dependencies(op_id) public getter that reads DataKey::Deps
  and returns an empty Vec when no deps exist, enabling tooling and
  UIs to query dependency chains without internal storage access;
  add three tests covering the stored-deps, no-deps, and nonexistent-op
  cases (closes Maki-Zeninn#880)

- Add get_max_pending_ops() getter mirroring min_delay(), exposing
  the MaxPendingOps limit set at initialize time; add
  test_get_max_pending_ops_returns_initialized_value alongside the
  existing QueueFull tests (closes Maki-Zeninn#881)

- Add ops_cleaned and admin_transferred to the module-level event
  doc comment so the list matches all events the contract emits
  (closes Maki-Zeninn#882)
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@ochemegina-ai Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Maki-Zeninn
Maki-Zeninn merged commit f2151c6 into Maki-Zeninn:main Jul 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants